<template>
	<view class="">
		<navigator :url="'/pages/prot_details/prot_details?cid='+item.goods_id" hover-class="hover-class" class="navBox mt-20 d-flex" v-for="(item,index) in goodsList" :key='index'>
			<view class="">
				<image :src="item.logo" mode="aspectFill"></image>
			</view> 
			<view class="d-flex flex-d jfy-sb ml-20 flex-grow1">
				<text class="text-overflow2">{{item.title}}</text>
				<text class="textColor666">{{item.goods_spec}}</text>
				<view class="d-flex-yCenter-sb">
					<view class="d-flex">
						<text v-if="integral" class="font-32 Price-color">{{item.integral}}积分+</text>
						<text class="font-32 Price-color">￥{{item[goodsType==0?'price_selling':'price_seckill']}}</text>
					</view>
					<text class="textColor666">x{{item.goods_number}}</text>
				</view>
			</view>
		</navigator>
	</view>
</template>

<script>
	export default {
		name:'order-goodsList',
		props:{
			// 积分商城时显示积分
			integral:{
				type:Boolean,
				default:false
			},	
			goodsList:{
				type:Array,
				default:[]
			},
			goodsType:{
				type:[String,Number],
				default:0
			}
		}
	}
</script>

<style lang="scss">
	.navBox{
		
		image{
			width: 200rpx;
			height: 200rpx;
			border-radius: 12rpx;
		}
	}
</style>
